﻿using BestTrader.Cms.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace BestTrader.Cms.IServices
{
    public interface IDESEncryptService
    {
        string EncryptPhone(string phone);

        string EncryptQQ(string qq);

        string DecryptPhone(string phone);

        string DecryptQQ(string qq);

        string EncryptCardId(string cardId);

        string DecryptCardId(string cardId);

        string EncryptBankAccount(string bankAccount);

        string DecryptBankAccount(string bankAccount);

        string EncryptEmail(string email);

        string DecryptEmail(string email);

        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="manager"></param>
        /// <returns></returns>
        Manager DecryptManagerInfo(Manager manager);

        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="manager"></param>
        /// <returns></returns>
        Manager EncryptManagerInfo(Manager manager);
    }
}
